package espaceVisuCarre;

import java.math.BigInteger;
import java.util.Vector;

import xmlItunes.Track;

/**
 * classe qui represente un regrouppement de mp3 ( horizontal )
 *
 */
public class SectionDeCarre 
{
	private float proportion ;
	
	
	private Vector<String> values ;
	
	private Vector<Track> tracks ;

	public SectionDeCarre( )
	{
		super();
		this.proportion = 0;
		this.tracks = new Vector<Track>();
		this.values = new Vector<String>();
	}
	
	
	public Vector<Track> getTracks(){return this.tracks;}


	public String getNom() 
	{
		String nom="";
		/*
		for(String s : values)
		{
			if(!nom.equals(""))nom+=",";
			nom+=s;
		}
		*/
		nom=""+values.firstElement() ;
		if( !values.firstElement().equals(values.lastElement()) )nom+=" - "+values.lastElement();
		return nom;
	}


	public float getProportion() {
		return proportion;
	}


	public Vector<String> getValues() {
		return values;
	}



	public void setProportion(float proportion) {
		this.proportion = proportion;
	}
	

}
